﻿using System;
using eCommerce.DataAccess;
using eCommerce.SagePay.Classes;

namespace eCommerce.BusinessLogic
{
    public class TransactionBL
    {
        public static void SaveTransactionDetails(Guid userId, SagePayResponse response)
        {
            TransactionDA.SaveTransactionDetails(userId,
                                                 response.ACSUrl,
                                                 response.AddressResult,
                                                 response.AVSCV2,
                                                 response.CV2Result,
                                                 response.FullStatus,
                                                 response.MD,
                                                 response.PAReq,
                                                 response.PostCodeResult,
                                                 response.SecurityKey,
                                                 response.Status,
                                                 response.StatusDetails,
                                                 response.ThreeDSecureStatus,
                                                 response.TxAuthNo,
                                                 response.VendorTxCode, 
                                                 response.VPSTxId);
        }
    }
}
